.s-toast {
  ::v-deep .s-popup {
    display: flex;
    align-items: center;
    justify-content: center;

    &__wrap {
      max-width: $toast-max-width;
      border-radius: $toast-border-radius;
      background: $toast-background;
    }
  }

  &__wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: $toast-min-width;
    padding: $toast-padding;
    text-align: center;
    color: $toast-color;
  }

  &__loading {
    font-size: $toast-loading-size;
    padding: $toast-loading-padding;
    color: inherit;
  }

  &__icon {
    font-size: $toast-icon-size;
  }

  &__message {
    font-size: $toast-font-size;
    line-height: $toast-line-height;
    text-align: center;
  }

  &--has-icon &__wrap {
    min-width: $toast-has-icon-min-width;
    min-height: $toast-has-icon-min-height;
    padding: $toast-has-icon-padding;
  }

  &--has-icon &__message {
    margin-top: $toast-has-icon-message-top;
  }

  // 居上
  &--top {
    ::v-deep .s-popup {
      align-items: flex-start;

      .s-popup__wrap {
        top: $toast-top-distance;
      }
    }
  }

  // 居下
  &--bottom {
    ::v-deep .s-popup {
      align-items: flex-end;

      .s-popup__wrap {
        bottom: $toast-bottom-distance;
      }
    }
  }
}